# 学生管理系统

menus = {1: "添加学生", 2: "删除学生", 3: "修改学生", 4: "查询单个学生信息", 5: "查询所有学生信息", 6: "退出系统"}

students = []


def print_menu():
    for menu in menus:
        print(menu, menus.get(menu))


# 输入的菜单ID
print_menu()
while True:
    menuIdInput = input()
    if menuIdInput is None or menuIdInput == '':
        print("")
    else:
        menuId = int(menuIdInput)
        print("已选择菜单:%s" % menus.get(menuId))
        if menuId == 1:
            name = input("请输入学生名称\n")
            age = input("请输入学生年龄\n")
            student_info = {"name": name, "age": age}
            students.append(student_info)
            print(students)


